package com.castle.fortress.admin.orders.mapper;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.orders.entity.GoodsOrderEntity;
import java.util.Map;
import java.util.List;
/**
 * 订单表Mapper 接口
 *
 * @author Mgg
 * @since 2023-01-13
 */
public interface GoodsOrderMapper extends BaseMapper<GoodsOrderEntity> {

    /**
    * 扩展信息列表
    * @param pageMap
    * @param goodsOrderEntity
    * @return
    */
    List<GoodsOrderEntity> extendsList(@Param("map")Map<String, Long> pageMap, @Param("goodsOrderEntity") GoodsOrderEntity goodsOrderEntity);

    /**
    * 扩展信息记录总数
    * @param goodsOrderEntity
    * @return
    */
    Long extendsCount(@Param("goodsOrderEntity") GoodsOrderEntity goodsOrderEntity);

    /**
    * 订单表扩展详情
    * @param id 订单表id
    * @return
    */
    GoodsOrderEntity getByIdExtends(@Param("id")Long id);



}
